package com.cicc.txn.dom.desk.txn.olap.controller;

import com.cicc.txn.dom.desk.txn.olap.feign.IFeignMsgService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class DemoController {

    @GetMapping("/olap/say")
    public String sayHello(@RequestParam("name") String name) {
        return "Hello World";
    }

    @GetMapping("/olap/hello")
    public String hello() {
        return "Hello World";
    }

//    @Resource
//    private IFeignMsgService feignMsgService;
//
//    @GetMapping("/feign/sendMsg")
//    public String sendMsg(@RequestParam("name") String name) {
//        return feignMsgService.sendMsg(name);
//    }
}
